import request from '@/utils/request'

export default   {
  fetchList: function(query) {
    return request({
      url: '/api/admin/schoolTable/list',
      params: query
    })
  },
  fetchOne: function(id) {
    return request({
      url: '/api/admin/schoolTable/get/' + id,
      method: 'get'
    })
  },
  delete: function(id) {
    return request({
      url: '/api/admin/schoolTable/delete/' + id,
      method: 'get'
      /*,
          params: { pv }*/
    })
  },
  add: function(data) {
    return request({
      url: '/api/admin/schoolTable/add',
      method: 'post',
      data
    })
  },
  update: function(data) {
    return request({
      url: '/api/admin/schoolTable/update',
      method: 'post',
      data
    })
  }
}
